home *** CD-ROM | disk | FTP | other *** search
- Path: crl.crl.com!not-for-mail
- From: bobfry@crl.com (Robert Fry)
- Newsgroups: comp.lang.c
- Subject: Re: free
- Date: 29 Jan 1996 08:31:20 -0800
- Organization: CRL Dialup Internet Access
- Message-ID: <4eisoo$f7h@crl.crl.com>
- References: <4e908i$3vq@news.utdallas.edu> <822702110snz@genesis.demon.co.uk>
- NNTP-Posting-Host: crl.com
-
- Lawrence Kirby <fred@genesis.demon.co.uk> writes:
-
- >C doesn't provide any method of determining the size of a heap allocated
- >object - you simply have to note the size somewhere when you allocate it.
-
- I would add to this the fact that many memory management packages offer
- some sort of method for getting this information. It's certainly not a
- part of the C language, but this is sometimes very useful for debugging
- purposes. Just be warned it's non-portable and library-specific.
-
- Bob
-